<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/view/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>个人任务</title>
</head>
<body>
	<!-- BEGIN CONTENT BODY -->
	<div class="page-content" style="height: 700px;">
		<a href="model/create?name=test&key=test_audit&description=testModel"
			target="_blank">创建模型</a>
		<!-- BEGIN EXAMPLE TABLE PORTLET-->
		<div class="portlet box green">
			<div class="portlet-title">
				<div class="caption">
					<i class="fa fa-cogs"></i>模型列表
				</div>
				<div class="tools"></div>
			</div>

			<div class="portlet-body">
				<div class="table-toolbar">
					<div class="row">
						<div class="col-md-6">
							<div class="btn-group"></div>
						</div>
						<div class="col-md-6"></div>
					</div>
				</div>
				<table class="table table-striped table-hover table-bordered"
					id="sample_editable_1">
					<thead>
						<tr>

							<th>模型ID</th>
							<th>模型标识</th>
							<th>模型名称</th>
							<th>版本号</th>
							<th>创建时间</th>
							<th>最后更新时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${ModelList}" var="model">
							<tr>
								<td>${model.id}</td>
								<td>${model.key}</td>
								<td>${model.name}</td>
								<td><b title='流程版本号'>V: ${model.version}</b></td>
								<td><fmt:formatDate value="${model.createTime}"
										pattern="yyyy-MM-dd HH:mm:ss" /></td>
								<td><fmt:formatDate value="${model.lastUpdateTime}"
										pattern="yyyy-MM-dd HH:mm:ss" /></td>
								<td><a
									href="${pageContext.request.contextPath}/static/act/modeler.html?modelId=${model.id}"
									target="_blank">编辑</a> <a
									href="${ctx}/act/model/deploy?id=${model.id}"
									onclick="return confirmx('确认要部署该模型吗？', this.href)">部署</a> <a
									href="${ctx}/act/model/export?modelId=${model.id}"
									target="_blank">导出</a> <a
									href="${ctx}/act/model/delete?id=${model.id}"
									onclick="return confirmx('确认要删除该模型吗？', this.href)">删除</a></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
		<!-- END EXAMPLE TABLE PORTLET-->
	</div>
</body>
</html>